using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class CanAction : MonoBehaviour
{
	
	protected List<GameObject> gameObjectSort;

	virtual protected void Update ()
	{
		if (gameObjectSort == null) {
			gameObjectSort = GameObjectUtils.getChildrenGameObjectSort (gameObject);
			initAction ();
		}
	}
	
	virtual protected void initAction ()
	{
	}
	
	virtual protected void doAction (GameObject gameObject)
	{
		
	}
	
	virtual protected void completeAction ()
	{
		
	}
}
